package com.wy.sloth.constant;

/**
 * 常量类
 * 
 * @author wangyuan
 * @since 2019年1月31日
 */
public class SlothConstants {
    
    /**
     * redis命名空间分隔符
     */
    public static final String REDIS_NAMESPACE_SEPARATOR = ":";
    
    /**
     * redis命名起始值
     */
    public static final String SLOTH = "sloth";
    
    /**
     * 消息待处理
     */
    public static final int STATUS_NEW = 1;
    /**
     * 消息处理中
     */
    public static final int STATUS_EXECUTING = 2;
    /**
     * 消息处理成功
     */
    public static final int STATUS_EXEC_SUCCESS = 3;
    /**
     * 消息处理失败
     */
    public static final int STATUS_EXEC_FAIL = 4;
    
    public static final String LOG_MSG_DEAL_RESULT_HASH_FIELD_STATUS = "dealStatus";
    public static final String LOG_MSG_DEAL_RESULT_HASH_FIELD_UPDATED_TIME = "updatedTime";
    public static final String LOG_MSG_DEAL_RESULT_HASH_FIELD_ERROR_MSG = "errorMsg";
}
